package bdqn.t09.service.impl;

import bdqn.t09.dao.HatCityMapper;
import bdqn.t09.pojo.HatCity;
import bdqn.t09.service.HatCityService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class HatCityServiceImpl implements HatCityService{

    @Resource
    private HatCityMapper hatCityMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return hatCityMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(HatCity record) {
        return hatCityMapper.insert(record);
    }

    @Override
    public int insertSelective(HatCity record) {
        return hatCityMapper.insertSelective(record);
    }

    @Override
    public HatCity selectByPrimaryKey(Integer id) {
        return hatCityMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(HatCity record) {
        return hatCityMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(HatCity record) {
        return hatCityMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<HatCity> selectAllCity() {
        return hatCityMapper.selectAllCity();
    }
}
